Repository navigation
Conversation
The change list was a listbox whose options held checkboxes and a Mark resolved button, under group headers with role button that held the fold button and the include-all checkbox: controls nested in roles whose children are presentational (axe nested-interactive). It is now a tree: group nodes and files are treeitems, which may hold controls, and the include-all checkbox is no longer hidden. The keys are the same. Closes #325
At 1280x720 the filter bar overflowed its column by 140 px and the User and Date selects wrapped their labels. The bar now wraps, the select labels stay on one line, and the search field keeps 140 px. Closes #321
The group's id moved to its whole treeitem, so moving to a long group scrolled the group instead of its header, which could stay hidden. A fold, Collapse all or a file past MAX_ROWS left aria-activedescendant on an element that is not drawn: the cursor now falls back to the group node, as Left does. The row at the cursor gets a focus outline while the tree has the focus, Mark resolved is named per row, and the hidden chevron loses its unused label. Refs #325
The kit gives select triggers width: 100%, so once the filter bar wraps, each select took a whole line. They now keep their natural width, and the bar's column gap is 4 px. In the default 1280x720 layout the commits column is about 181 px wide: the input, the branch and the two selects can't fit in 2 rows there, and now take 3. Refs #321
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Closes #325
Closes #321
#325: the Commit panel's change list is a tree. Its checkboxes and the Mark resolved button sat inside
buttonandoptionroles, which may not hold controls. The keyboard model was already a tree (group stops, Left/Right to fold, an active descendant), and atreeitemmay hold controls:aria-hidden, so its state is a real checkbox. The fold button's duplicatearia-expandedis gone.Mark resolved: <path>).aria-activedescendantfall back to its group. The row or group at the cursor is outlined with the focus colour while the tree has the focus. Moving onto a group scrolls its header into view.changes-keys.tsand the row ids are unchanged.#321: the Git log filter bar wraps instead of overflowing at 1280x720. In
CommitTable.svelte,.filterswraps (2px between rows, 4px between controls), the search field keeps at least 140px, and the User and Date selects keep their natural width (the kit trigger'swidth: 100%is overridden there, sopackages/uiis untouched).How do you test this PR?
Commit panel change list nests controls in button and option roles #325, before (
main): anestedControls(page)helper ingit.spec.tslists every control inside abutton,[role=button],[role=option]or[role=checkbox]. It found 48 in the keyboard test and 8 in the conflict test. After:[]in both.Commit panel change list nests controls in button and option roles #325, cursor round (6e414cd), each red on the old build and green after:
Mark resolved: scratch/rename-me.txtExpected: "solid",Received: "none"toBeInViewportfailed, ratio 0aria-activedescendantafter Collapse allThe last two reds came from a temporary
expect.softcopy of the keyboard test, since that test stops at its first failure.Git log filter bar overflows at 1280x720 #321, before:
fits the log filter bar in a 1280x720 windowgaveoverflow: 140,outside: ["User","Date"],wrapped: ["User","Date"]. After 81ca1d7: it also checks that User and Date are each narrower than half the bar and that the bar takes at most 3 rows. Red at the previous CSS ("wide": ["User", "Date"]), then green.Final commit:
git.spec.tsandtutorial.spec.tswith the engine and CLI (Chromium): 12 passed, 0 skipped, 0 failed. The include-all lookups no longer passincludeHidden, so the tutorial run proves the checkbox is exposed.pnpm buildandpnpm lintpass.plugins/gitpnpm test:unit(17 passed) andpnpm typechecklast ran at 6e414cd; 81ca1d7 changes only CSS and the e2e spec.Manual check: open the Git panel at 1280x720; in the Commit panel, use the arrow keys, Left/Right and Space on the change list.
Merge danger
LogView.sveltegrid, which narrows the branch tree and the details column. That call is for the team.pnpm build, lint, typecheck,pnpm test --force(1014 passed, 1 skipped) and the full e2e suite with the engine (141/141, Chromium only).Follow-up issues
Quality gate
aria-activedescendantafter a fold) and I2 (no visible cursor) plus the minors fixed in 6e414cd. Producer red→green only